from base.base import Base
from selenium.webdriver.common.by import By
from time import sleep



class SouSuo(Base):
    sousuo=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout[2]/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout[1]/android.widget.TextView')
    sousuokuang=(By.ID,'com.kongfz.app:id/etContent')
    sousuoanniu=(By.ID,'com.kongfz.app:id/tvSearch')
    dy1=(By.ID,'com.kongfz.app:id/tvName')
    def sousuoyemian(self,name):
        self.loc_ele(self.sousuo).click()
        sleep(3)
        self.loc_wait_ele(self.sousuokuang).send_keys(name)
        sleep(3)
        self.loc_ui_ele(self.sousuoanniu).click()






